//package com.shenfc.card.subscriber;
//
//import org.springframework.amqp.core.*;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * 作者：沈飞超
// * 功能描述：
// * 创建日期：2018/4/2 16:22
// */
//@Configuration
//public class RabbitmqSubscriber {
//
//    @Bean
//    Queue queue() {
//        return new Queue("rabbitQueue1");
//    }
//
//    @Bean
//    Queue queue2() {
//        return new Queue("rabbitQueue2");
//    }
//
////    @Bean
////    TopicExchange exchange() {
////        return new TopicExchange("spring-boot-exchange");
////    }
//
////    @Bean
////    Binding binding(Queue queue, TopicExchange exchange) {
////        return BindingBuilder.bind(queue).to(exchange).with("rabbitKey1");
////    }
//
//    @Bean
//    FanoutExchange exchange() {
//        return new FanoutExchange("fanoutExchange");
//    }
//
//    @Bean
//    Binding bindingExchangeA(Queue queue,FanoutExchange fanoutExchange) {
//        return BindingBuilder.bind(queue).to(fanoutExchange);
//    }
//
//    @Bean
//    Binding bindingExchangeB(Queue queue2, FanoutExchange fanoutExchange) {
//        return BindingBuilder.bind(queue2).to(fanoutExchange);
//    }
//
//}
